class BannerModel {
  List<TheList> list;
  String positionName;
  String width;
  String height;

  BannerModel({this.list, this.positionName, this.width, this.height});

  BannerModel.fromJson(Map<String, dynamic> json) {
    if (json['list'] != null) {
      list = new List<TheList>();
      json['list'].forEach((v) {
        list.add(new TheList.fromJson(v));
      });
    }
    positionName = json['position_name'];
    width = json['width'];
    height = json['height'];
  }

  Map<String, dynamic> toJson() {
    final Map<String, dynamic> data = new Map<String, dynamic>();
    if (this.list != null) {
      data['list'] = this.list.map((v) => v.toJson()).toList();
    }
    data['position_name'] = this.positionName;
    data['width'] = this.width;
    data['height'] = this.height;
    return data;
  }
}

class TheList {
  int id;
  String title;
  String url;
  String description;
  String imageUrl;
  String city;
  String sImageUrl;
  String on;

  TheList(
      {this.id,
        this.title,
        this.url,
        this.description,
        this.imageUrl,
        this.city,
        this.sImageUrl,
        this.on});

  TheList.fromJson(Map<String, dynamic> json) {
    id = json['id'];
    title = json['title'];
    url = json['url'];
    description = json['description'];
    imageUrl = json['image_url'];
    city = json['city'];
    sImageUrl = json['s_image_url'];
    on = json['on'];
  }

  Map<String, dynamic> toJson() {
    final Map<String, dynamic> data = new Map<String, dynamic>();
    data['id'] = this.id;
    data['title'] = this.title;
    data['url'] = this.url;
    data['description'] = this.description;
    data['image_url'] = this.imageUrl;
    data['city'] = this.city;
    data['s_image_url'] = this.sImageUrl;
    data['on'] = this.on;
    return data;
  }
}